﻿/*********************弘石项目三组************************
*  功能描述：客户信息列表业务逻辑层
*  作者：刘伟康
*  时间：2021-12-10
*  修改人：刘伟康
*  修改时间：2021-12-10
*********************弘石项目三组************************/
using Hong.IRepository.IRepository_CustomerManagement;
using Hong.Model.Dto.Model_CustomerManagementDto;
using Hong.Model.SysDomain.Model_CustomerManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hong.Business.Business_ContractManagement
{
    public class CustInfoListBusiness
    {
        #region 构造器注入
        private readonly ICustInfoListRepository _cust;
        public CustInfoListBusiness(ICustInfoListRepository cust)
        {
            _cust = cust;
        }
        #endregion
        #region 客户信息列表
        #region 客户信息显示查询
        public List<CustomerExtendedView> GetCustomerExtendedDto(string custId, string custName, string custPhones, string edTypeId, string edIndustryId, int pageIndex, int pageSize, out int totalCount)
        {
            return _cust.GetCustomerExtendedDto(custId, custName, custPhones, edTypeId, edIndustryId, pageIndex, pageSize, out totalCount);
        }

        /// <summary>
        /// 批量删除客户信息
        /// </summary>
        /// <returns></returns>
        public int PDeleteCustomer(string ids)
        {
            return _cust.PDeleteCustomer(ids);
        }

        /// <summary>
        /// 修改客户列表信息
        /// </summary>
        /// <param name="customer"></param>
        /// <returns></returns>
        public int PutCustomer(Customer customer)
        {
            return _cust.PutCustomer(customer);
        }
        #endregion

        #region 客户信息列表反填
        /// <summary>
        /// 反填客户列表信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Customer GetCustomerFT(string id)
        {
            return _cust.GetCustomerFT(id);
        }
        /// <summary>
        /// 反填扩展信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Extended GetSatisfactionFT(string id)
        {
            return _cust.GetSatisfactionFT(id);
        }
        #endregion
        #endregion

    }
}
